<script id="view-student-template" type="text/x-handlebars-template">
	{{#each this}}
		<fieldset class="field-group"></fieldset>
		<form class="form-horizontal form-editor form-viewer-student">
			<div class="row">
				<div class="col-sm-8">
					<div class="row">
						<div class="col-sm-6">
							<div class="form-group">
								<label class="col-sm-4 control-label required">姓名</label>
								<div class="col-sm-8">
									<span class="form-control readonly">{{name}}</span>
								</div>
							</div>
						</div>
						<div class="col-sm-6">
							<div class="form-group">
								<label class="col-sm-4 control-label">昵称</label>
								<div class="col-sm-8">
									<span class="form-control readonly">{{nick}}</span>
								</div>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-sm-6">
							<div class="form-group">
								<label class="col-sm-4 control-label">性别</label>
								<div class="col-sm-8">
									<span class="form-control readonly">{{sex}}</span>
								</div>
							</div>
						</div>
						<div class="col-sm-6">
							<div class="form-group">
								<label class="col-sm-4 control-label">生日</label>
								<div class="col-sm-8">
									<span class="form-control readonly">{{birthday}}</span>
								</div>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-sm-6">
							<div class="form-group">
								<label class="col-sm-4 control-label">备注</label>
								<div class="col-sm-8">
									<span class="form-control readonly">{{remark}}</span>
								</div>
							</div>
						</div>
					</div>
				</div>
				<div class="col-sm-4">
					<div class="student-photo">
						{{#if avatar}}
							<img src="{{avatar}}" width="100%" height="100%">
						{{else}} 
							<img src="/miwawa/resources/css/images/avatars/baby_default.png" width="100%" height="100%">
						{{/if}}
					</div>
				</div>
			</div>
		</form>
	{{/each}}
</script>

<script id="view-parents-template" type="text/x-handlebars-template">
	{{#each this}}
		<form class="form-horizontal form-editor form-viewer-parents">
			<div class="row" data-dynamic-template>
				<div class="col-sm-4">
					<div class="form-group">
						<label class="col-sm-4 control-label">关系</label>
						<div class="col-sm-8">
							<span class="form-control readonly">{{relation}}</span>
						</div>
					</div>
				</div>
				<div class="col-sm-4">
					<div class="form-group">
						<label class="col-sm-4 control-label">姓名</label>
						<div class="col-sm-8">
							<span class="form-control readonly">{{name}}</span>
						</div>
					</div>
				</div>
				<div class="col-sm-4">
					<div class="form-group">
						<label class="col-sm-4 control-label">手机</label>
						<div class="col-sm-8">
							<span class="form-control readonly">{{mobile}}</span>
						</div>
					</div>
				</div>
			</div>
			<div class="row">
				<div class="col-sm-4">
					<div class="form-group">
						<label class="col-sm-4 control-label">APP昵称</label>
						<div class="col-sm-8">
							<span class="form-control readonly">{{app}}</span>
						</div>
					</div>
				</div>
				<div class="col-sm-4">
					<div class="form-group">
						<label class="col-sm-4 control-label">微信</label>
						<div class="col-sm-8">
							<span class="form-control readonly">{{wechat}}</span>
						</div>
					</div>
				</div>
				<div class="col-sm-4">
					<div class="form-group">
						<label class="col-sm-4 control-label">Email</label>
						<div class="col-sm-8">
							<span class="form-control readonly">{{email}}</span>
						</div>
					</div>
				</div>
			</div>
		</form>
	{{/each}}
</script>
